<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@page import="java.util.List"%>
<%@page import="org.javaforever.cookieshop.domain.GoodsBean"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>Jsp</title>
</head>
<body>
<h1>index.jsp</h1>
<h1>${msg}</h1>
<h1>${count}</h1>
	     
<table class="aatable">
	<tr>
	    <th>序号</th>
	    <th>名字</th>
	    <th>活跃</th>
	    <th>封面</th>
	    <th>图片一</th>
	    <th>图片二</th>
	    <th>价格</th>
	    <th>简介</th>
	    <th>存货</th>
	    <th>类型</th>
	    <th>滚动</th>
	    <th>热销</th>
	    <th>新品</th>

	<c:forEach items="${goodsData}" var="g">  
	<tr>
	    <td>${g.id}</td>
	    <td>${g.name}</td>                          
	    <td>${g.active}</td>
	    <td>${g.cover}</td>
	    <td>${g.image1}</td>
	    <td>${g.image2}</td>
	    <td>${g.price}</td>
	    <td>${g.intro}</td>
	    <td>${g.stock}</td>
	    <td>${g.type}</td>
	    <td>${g.isScroll}</td>
	    <td>${g.isHot}</td>
	    <td>${g.isNew}</td>
	    </tr>
	</c:forEach>
	</table>
</body>                        
</html>
